html {
    background: url('../../../images/bg2.png');
    background-size: cover;
    background-attachment: fixed;
}

body {
    margin: 0;
    padding: 0;
}

.topnav {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -5%);
    padding: 20px;
    border-radius: 15px;
    width: 1200px;
    height: 30px;
    background-color: rgba(128, 128, 128, 0.5);
    z-index: 1000;
    transition: width 0.3s ease, height 0.3s ease; 
}

.topnav a:hover {
    font-size: 25px;
}

.logo {
    font-size: 28px;
    font-family: 'Times New Roman', Times, serif;
}

.topnav_ri {
    float: right;
}

.topnav_ri a {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    color: #fff;
    margin-left: 20px;
    transition: font-size 0.3s ease; 
}

.topnav_ri a:hover {
    align-content: center;
}

.reg_login {
    border-radius: 5px;
    width: 50px;
    padding: 5px;
    background: #000;
    margin-left: 20px;
}

.reg_login:hover {
    width: 55px;
    padding: 10px;
    font-size: 20px;
    background: #1f8bc9;
}

.reg_login a {
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 5px 5px 5px;
    margin-left: 5px;
}
